<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
     
<!DOCTYPE html>
<html>
	<head>
		<script src="${ctxWebStatic }/laydate/laydate.js"></script>
		<meta name="decorator" content="center_common" />
	</head>
	
	<body>
	
		<!--头部-->

	<!--头部结束-->
	<!--导航-->

	<!--导航结束-->
	<!--4line-->
	
	<!--主题内容-->
	<style>
		.invoice-info .col-sm-3{
			width:33%
		}
	</style>
	<div class="parts_main_box bgf5">
		<div class="container">
			<div class="row">
				<!-- pc 订单管理 -->
				<div class="Credit_box clearfix">
					<!-- 左边部分 -->
					<!-- 左边部分 end-->
					<!-- 右边部分 -->
					   
					<div class="col-sm-10 pad20 pad_10">
						<div class="Credit_right reset-h">
							<!--S-询价详情-->
							<div class="goods_detail_info_box mar_16 clearfix">
								<h3 class="clearfix">
									<span class="col-sm-6 col-xs-12">
										询价详情
									</span>
									<a href="javascript:void(0)" class="return_goods_detail col-sm-5">
										询价单号：${code }
									</a>
								</h3>
								<div class="inquiry-wrap">
									<!-- S-详细列表 -->
									<div class="inquiry-list clearfix">
									   <c:forEach var="list" items="${enquiry }">
										<div class="col-sm-4 pad0">
											<div class="inquiry-item">
												<div class="inquiry-attr">
													<span>配件信息：</span>
													<div class="inquiry-val">${list.partsInfo }</div>
												</div>
												<div class="inquiry-attr">
													<span>需要数量：</span>
													<div class="inquiry-val">${list.num }</div>
												</div>
												<div class="inquiry-attr">
													<span>期望到货时间：</span>
													<div class="inquiry-val"><fmt:formatDate value="${list.receiveTime}" pattern="yyyy-MM-dd"/></div>
												</div>
												<div class="inquiry-attr">
													<span>备注：</span>
													<div class="inquiry-val">${list.remarks}</div>
												</div>
												<div class="inquiry-attr">
													<span>实物照片：</span>
													<c:forEach var="image" items="${list.images }">
													<div class="clearfix inquiry-val">
														<div class="photo-list"><img src="${ctxWeb}/web/file/getFile?filePath=${image}" alt="" data-action="zoom" ></div>
													</div> 
													</c:forEach>
												</div>
											</div>
										</div>
										</c:forEach>
									</div>
									<!-- E-详细列表 -->
									<!-- S-发票明细 -->
									<div class="invoice-info">
										<div class="invoice-box clearfix">
											<div class="col-sm-4 product clearfix pad0">
												<em>需要发票：</em>
												<span>${fns:getDictLabel(enquiryGoods.whetherTicket, 'whether_ticket', '')}</span>
											</div>
											<div class="col-sm-4 clearfix pad0">
												<em>联系人：</em>
												<span>${enquiryGoods.contacts }</span>
											</div>	
											<div class="col-sm-4 clearfix pad0">
												<em>QQ号码：</em>
												<span>${enquiryGoods.oicq }</span>
											</div>	
										</div>
										<div class="invoice-box clearfix">
											<div class="col-sm-4 clearfix product pad0" style='width:66%'>
												<em>品质需求：</em>
												<span>
												<%-- <c:forEach var="lis" items="${lis }">
												 ${fns:getDictLabel(lis, 'quality_type', '')}，
												</c:forEach> --%>
												${qus }
												</span>
												
											</div>
											<div class="col-sm-4 clearfix  pad0">
												<em>电话号码：</em>
												<span>${enquiryGoods.phone }</span>
											</div>
										</div>
									</div>
									<!-- E-发票明细 -->
								</div>
							</div>	
							<!--E-询价详情-->
						</div>
						
						<!-- S-商家回复 -->
						<c:if test="${enquiryGoods.status!='1' }">
						<div class="business-reply">
							<!-- E-商家回复1 -->
							<c:forEach var="list" items="${list}">
							<div class="reply-box mar_16">
								<div class="reply-title clearfix">
									<h4 class="col-sm-6 col-xs-12">商家回复（<b>配件信息：${list.enquiryGoodsReply.partsCode }</b>）</h4>
									<span class="time col-sm-5"><fmt:formatDate value="${list.enquiryGoodsReply.createDate}" pattern="yyyy-MM-dd"/><em><fmt:formatDate value="${list.enquiryGoodsReply.createDate}" pattern="HH:mm"/></em></span>
								</div>
								<div class="reply-table-info">
									<div class="table-wrap">
										<table class="table table-bordered">
											<thead>
												<tr>
													<td width="15%">
														<span>商品名称</span>
													</td>
													<td width="20%">
														<span>配件编号</span>
													</td>
													<td width="10%">
														<span>单价</span>
													</td>
													<td width="16%">
														<span>预计到货时间</span>
													</td>
													<td width="21%">
														<span>图片</span>
													</td>
													<td width="18%">
														<span>说明</span>
													</td>
												</tr>
											</thead>
											<tbody>
											    <c:forEach var="list" items="${list.webEnquiryGoodsReply}">
												<tr>
													<td><p>${list.goodsName }</p></td>
													<td><p>${list.partsCode }</p></td>
													<td><p>${list.money}</p></td>
													<td><p><fmt:formatDate value="${list.receiveTime}" pattern="yyyy-MM-dd"/></p></td>
													<td>
														<ul class="reply-pic clearfix">
														    <c:forEach var="image" items="${list.images }">
														    <c:if test="${image!=null and  image!=''}">
															<li class="item-photo"><img src="${ctxWeb}/web/file/getFile?filePath=${image}" alt="" data-action="zoom" ></li>
															</c:if>
															</c:forEach>
															<!-- <li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li> -->
														</ul>
													</td>
													<td><p>${list.remarks}</p></td>
												</tr>
												</c:forEach>
												<!-- <tr>
													<td><p>范范范</p></td>
													<td><p>15101095083235</p></td>
													<td><p>201</p></td>
													<td><p>2017-02-12</p></td>
													<td>
														<ul class="reply-pic clearfix">
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
														</ul>
													</td>
													<td><p></p></td>
												</tr>
												<tr>
													<td><p>范范范</p></td>
													<td><p>15101095032385</p></td>
													<td><p>3</p></td>
													<td><p>2017-02-12</p></td>
													<td>
														<ul class="reply-pic clearfix">
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
														</ul>
													</td>
													<td><p></p></td>
												</tr> -->
											</tbody>
										</table>
							
									</div>
								</div>
							</div>
							</c:forEach>
					
							<!-- S-商家回复1 -->
							<!-- E-商家回复2 -->
							
						<!-- 	<div class="reply-box mar_16">
								<div class="reply-title clearfix">
									<h4 class="col-sm-6 col-xs-12">商家回复（<b>配件信息：刹车片</b>）</h4>
									<span  class="time col-sm-5">2012-02-12<em>23:21</em></span>
								</div>
								<div class="reply-table-info">
									<div class="table-wrap">
										<table class="table table-bordered">
											<thead>
												<tr>
													<td width="15%">
														<span>商品名称</span>
													</td>
													<td width="20%">
														<span>配件编号</span>
													</td>
													<td width="10%">
														<span>单价</span>
													</td>
													<td width="16%">
														<span>预计到货时间</span>
													</td>
													<td width="21%">
														<span>图片</span>
													</td>
													<td width="18%">
														<span>说明</span>
													</td>
												</tr>
											</thead>
											<tbody>
											    
												<tr>
													<td><p>范范范范范范</p></td>
													<td><p>15101095083225</p></td>
													<td><p>1</p></td>
													<td><p>2017-02-12</p></td>
													<td>
														<ul class="reply-pic clearfix">
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
														</ul>
													</td>
													<td><p></p></td>
												</tr>
												
											<tr>
													<td><p>范范范</p></td>
													<td><p>15101095083235</p></td>
													<td><p>201</p></td>
													<td><p>2017-02-12</p></td>
													<td>
														<ul class="reply-pic clearfix">
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
														</ul>
													</td>
													<td><p></p></td>
												</tr>
												<tr>
													<td><p>范范范</p></td>
													<td><p>15101095032385</p></td>
													<td><p>3</p></td>
													<td><p>2017-02-12</p></td>
													<td>
														<ul class="reply-pic clearfix">
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
															<li class="item-photo"><img src="images/inquiry-pic1.jpg" alt=""></li>
														</ul>
													</td>
													<td><p></p></td>
												</tr> 
											</tbody>
										</table>
									</div>
								</div>
							</div> -->
						
							<!-- E-商家回复2 -->
						</div>
						</c:if>
						<!-- E-商家回复 -->
					</div>
							<div class="pay_btn_staut">
						    <a href="javascript:history.go(-1)" class="bg_red_btn" id="fan1">返回</a>
						</div>
					<!-- 右边部分 end-->
				</div>
				<!-- pc 订单管理 end -->
			</div>
		</div>
	</div>
	<!--主题内容-->
	<!--foot-->
	
	<!--foot结束-->
	</body>
	
</html>
